package com.open.api.wechat.app.request;

import com.open.api.wechat.app.request.condition.WeChatVisitTrendCondition;
import com.open.api.wechat.app.response.WeChatVisitTrendResponse;
import com.open.api.wechat.common.HttpMethod;
import com.open.api.wechat.common.WeChatCommonRequest;
import com.open.api.wechat.constants.WeChatAppUrlConstants;
import lombok.Data;

/**
 * @author : zhaoxuan
 * @date : 2021/7/1 14:42
 * @description : WeChatVisitTrendRequest
 * @version: 1.0
 */
@Data
public class WeChatVisitTrendRequest extends WeChatCommonRequest<WeChatVisitTrendResponse> {

    private WeChatVisitTrendCondition condition;

    @Override
    public String getDefaultUrl() {
        return "";
    }

    @Override
    public Object getCondition() {
        return condition;
    }

    @Override
    public HttpMethod getMethod() {
        return HttpMethod.POST;
    }

    @Override
    public Class<WeChatVisitTrendResponse> getResponse() {
        return WeChatVisitTrendResponse.class;
    }

    public void choiceDailyUrl(){
        super.setUrl(WeChatAppUrlConstants.APP_DAILY_VISIT_TREND);
    }

    public void choiceMonthlyUrl(){
        super.setUrl(WeChatAppUrlConstants.APP_MONTHLY_VISIT_TREND);
    }

    public void choiceWeeklyUrl(){
        super.setUrl(WeChatAppUrlConstants.APP_WEEKLY_VISIT_TREND);
    }
}
